home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / xmedia10.zip / XMEDIA.DOC next >
Text File  |  1994-07-24  |  15KB  |  278 lines

  1. ═══════════════════════════════════════════════════════════════════════════════ 
  2.      XMedia      Disk media error detect utility (c)1994 Brand-X FreeWare
  3. ═══════════════════════════════════════════════════════════════════════════════ 
  4.                                                                                 
  5. Note: You will need a disk test utility, such as NORTON's DISK TEST (DT.EXE)
  6.       to complete the media test using this program... There are also many
  7.       DISK TEST clones out there, so finding one should be no problem.
  8.  
  9.                               What's it do?
  10.                             -----------------
  11.      XMedia from Brand-X FreeWare is actually very simple. All it does is
  12.     fill every available byte on floppy disks with ASCII 255 (FF Hex). It's
  13.     setup to be fast and easy to use, operation is mostly automatic. XMedia
  14.     will generate a 360K (approximately) file called 360K255.FIL that it
  15.     uses to fill the floppy disk with. If this file doesn't exist when
  16.     XMedia is started from the command prompt, it will generate it.
  17.  
  18.        After you run XMedia and fill a disk with CHR$255, run DISK TEST
  19.     to expose bad or weak sectors and mark them as bad so they won't fail
  20.     later with your valuable data in them!
  21.  
  22.        READ the following - it's very informative and might save you data...
  23. Page 1
  24. ═══════════════════════════════════════════════════════════════════════════════ 
  25.                                    Theory
  26.                                 ------------
  27.    As we all know, our data is composed of digital on/off switches. Each byte
  28.  consists of 8 bits - a binary number, that represents the character value,
  29. from  0 to 255, and 1 parity bit that DOS uses to determine if the data is
  30. accurate or not. Bits are either on (1) or off (0). I've illustrated the
  31. concept below.
  32.  
  33.                               8 Data Bits              1 Parity
  34.       1 byte--> ┌─────────────────────────────────────┐┌────┐
  35.  
  36.                  1    0    1    1    1    0    0    1    0
  37. Disk surface────┐  ┌─┐  ┌─┐  ┌─┐  ┌─┐  ┌─┐  ┌─┐  ┌─┐  ┌─┐  ┌─── Disk surface
  38.                 │░░│ │  │ │░░│ │░░│ │░░│ │  │ │  │ │░░│ │  │
  39.                 └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘
  40.                               Bit cells
  41.                   1=charged (░░)           0=not charged
  42.  
  43.   One way to think of each place on the disk that a bit is stored in, is as a
  44. "cell" that is either "charged up" with magnetism (1) , or not (0).
  45.  
  46. Page 2
  47. ═══════════════════════════════════════════════════════════════════════════════ 
  48.   Data errors occur most often when cells fail to hold a "charge", thus making
  49. the byte of data invalid. If *ONE* bit fails - you can lose an entire program,
  50. database, or other important file!
  51.  
  52.    We can imagine the cell as a glass of water. Cells are not likely to fill
  53. up all by themselves, but they COULD "leak" or lose their charge. Whether
  54. cells leak or not is determined by the quality of the media. One flaw in the
  55. magnetic properties of the disk can make ONE or MANY bit cells leak. They can
  56. also have a tendancy to leak over time. So how do we find leaky cells?
  57.  
  58.    The first step is to charge them all up! This means we need to write an
  59. ASCII character that has the maximum bit cells turned on. There is only one.
  60. The last character in the IBM extended character set - 255. By writing this
  61. character to every data byte location on the disk, the maximum number of bit
  62. cells is turned on.
  63.  
  64.    Now all we have to do is wait for a leak. How long does this take?
  65. Anywhere from 1 millionth of a second to 100 years! Well, we DON'T want to
  66. wait 100 years, or even ONE for that matter - but we DO need to find out if
  67. any of the cells leak, or even MIGHT leak in the future. Some people simply
  68. say "Just re-format it to find bad spots." Here's why you SHOULDN'T ...
  69. Page 3
  70. ═══════════════════════════════════════════════════════════════════════════════ 
  71.   We are all familiar with the format process. DOS writes the format pattern
  72. on the disk and "roughly" tests it for errors. Sometimes, it returns the
  73. message "xxxx Bytes in bad sectors". When FORMAT.COM finds bad areas, it marks
  74. the entire cluster as bad in the FAT tables, so that DOS won't write anything
  75. to it. Later, when you write a file to the disk, DOS basically "skips" these
  76. bad places, so your data gets written to places that seemed ok at the time of
  77. format.
  78.  
  79.   Unfortunately, FORMAT.COM can't take the time to wait and see if the cells
  80. fail, so if a cell doesn't fail in a very short time, it passes. The result
  81. is: formatting/reformatting a disk does NOT find all the defective areas. In
  82. fact, if a disk with sectors marked as bad is RE-formatted, it's possible that
  83. some of those sectors will hold a charge long enough to pass thru the format
  84. process on a subsequent format and be marked as good!
  85.  
  86.    People who reformat disks a number of times concurrently to make bad
  87. sectors "go away" often have the highest data error rate known to mankind.
  88.  
  89.    Summary - DO NOT reformat disks to find bad areas, or erase a disk.
  90.              Always delete any files and then run DISK TEST.
  91.  
  92. Page 4
  93. ═══════════════════════════════════════════════════════════════════════════════ 
  94.   OK - so lets say that we've run XMedia on a disk, and all the cells are
  95. charged up. We need to read the disk and see if any have gone bad. Usually,
  96. you can simply test read the entire disk and allow DOS to look for parity
  97. errors. These are what causes the dreaded "Data error reading disk X" message.
  98.  
  99.                              Parity?  Huh?
  100.  
  101.   The parity system uses an "extra" bit to help DOS spot bad data. The 8 bits
  102. in a data byte are totalled up, and the if the resulting number is even, you
  103. get a parity of 1. Similarly, an odd result gets a parity of 0. This parity
  104. bit is included with each 8 bits of data, effectively making a byte 9 bits -
  105. (8 of data, and one parity). Of course this is no guarantee that you'll catch
  106. an error, since there's a 50% chance that the total value may remain even (or
  107. odd) and still be different than when it was first written.
  108.  
  109.   Ideally, we should scan the disk and make sure EVERY character is still
  110. CHR255 - later versions of XMedia should be able to do this for you.. for now,
  111. let's let a disk test program do the work for us....
  112.  
  113.   By reading the disk, each byte is automatically checked for parity error.
  114. DOS does this for us. Run your disk test program and see if anything turns up.
  115. Page 5
  116. ═══════════════════════════════════════════════════════════════════════════════ 
  117.   A good disk test program will scan the entire data area, looking for errors.
  118. When it finds one, it should remember where it is, and at the end of the scan,
  119. offer to mark that area as bad in the FAT tables, just as FORMAT.COM does at
  120. format time, so you don't write data to it later. Once an area is marked as
  121. bad, it will NEVER be accessable to DOS again, UNLESS you re-format the disk!
  122. (DON'T DO IT!) Once we find these areas, we want them PERMENANTLY disabled.
  123.  
  124.   If data errors are found, be sure and let the disk test program mark the
  125. areas as bad, and do not ever reformat the disk.
  126.  
  127.   If you really want to give your disks the acid test, wait a week and then
  128. run the disk test again... but DO NOT run Xmedia again! Here's why:
  129.  
  130.   Once you have charged up all the bit cells, you want to allow them time to
  131. leak if they are so inclined... if you WRITE to them again, it will re-charge
  132. them and not allow them to fail in time. One other factor can accellerate this
  133. process - HEAT. Temperature plays a roll in how well a material can retain a
  134. magnetic charge. The higher the temperature, the harder it is for a material
  135. to retain the charge - in fact permenant magnets are made by allowing liquid
  136. metal to harden and cool while being surrounded with a strong electromagnet to
  137. align all the atoms in the material - and that's what causes a magnetic field.
  138. Page 6
  139. ═══════════════════════════════════════════════════════════════════════════════ 
  140.   The ultra acid/hammer test...   The worst thing you can do to your disks,
  141. beside cut them to pieces with scissors, is to expose them to temperature
  142. cycling. Temperatures over 80°F can greatly accellerate magnetic decay in disk
  143. material, and after a few weeks of the normal daily ambient temperature
  144. changes, your data can be in pretty poor shape.
  145.  
  146.                              The test....
  147.  
  148.   Store the disks to be tested for a week or more in a place that sees about
  149. 85°F to 95°F during the day, and 50°F to 60°F at night. The garage is a good
  150. place.. protect them from dust tho. This is pretty harsh treatment.
  151.  
  152.   REMEMBER!! DON'T run XMedia again!! Run the DISK TEST again, and see if
  153. you've turned up any more errors. If you HAVEN'T, you found yourself some
  154. pretty decent quality media.
  155.  
  156.   Odds are, however, that out of 50 disks from any one manufacturer that
  157. passing the format, AND the first disk test, you'll turn up a at least 5 or 6
  158. disks with fresh data errors. These are the ones we really want to find.
  159.  
  160.  
  161. Page 7
  162. ═══════════════════════════════════════════════════════════════════════════════ 
  163.   Here's some ideas to maximize media reliability...
  164.  
  165. * Never reformat a disk. Always run a disk test program to flag bad spots.
  166.  
  167. * Always store your disks in a cool place - avoid heat.
  168.  
  169. * Run the disk test often, especially after storing disks for a long time,
  170.   and just prior to writing data to them.
  171.  
  172. * Run XMedia on all your disks, blank or not to fill any available disk space
  173.   with CHR255 Note - XMEDIA will not overwrite any existing data on the disk.
  174.   Ideally, you should run XMedia as soon as a disk is formatted, that way the
  175.   entire disk will be filled.
  176.  
  177. * Familiarize yourself with the sound the disk drive makes when a data error
  178.   occurs. DOS will retry 4 to 5 times to read a byte before it stops and
  179.   displays the error. Sometimes, DOS will get the data right after a few tries
  180.   and never tell you that it had trouble. This is a clue that a data error is
  181.   inevitable
  182.  
  183.   I've included the actual test results that this program is based on....
  184. Page 8
  185. ═══════════════════════════════════════════════════════════════════════════════ 
  186.   How many files do you have on floppy disk?  We have thousands. In fact,
  187. several gigabytes worth.
  188.  
  189.   A study was done by Brand-X on a 2 groups of disks...
  190.  
  191. Group   Quantity   Type
  192. ------- ---------  -------------------------------------------------
  193. Group 1   380      720K 3½" disks, that were punched out to be 1.4m
  194.                    From various cheapie no-name brands.
  195.  
  196. Group 2   350      1.4m disks from various manufacturers, including the
  197.                    cheapest no-name bulk disks we could find, all the
  198.                    way up thru brand names like Maxel and Sony.
  199.  
  200. The disks were loaded with shareware and GIF images, etc. - and were
  201. completely full, with the possible exception of 1 or 2k of leftover space per
  202. disk, if any. The disks were stored for 1 year, and read from occassionally
  203. during that time as files were needed.. Data errors were pretty common. We
  204. flagged the spots bad as they were found.
  205.  
  206.  
  207. Page 9
  208. ═══════════════════════════════════════════════════════════════════════════════ 
  209.   Prior to running XMedia on both groups, the 720K group tended to have more
  210. data errors than the 1.4m group,
  211.  
  212.   We got tired of losing files. It took over 3 months of "spare time" to copy
  213. all the files off of each disk, run XMedia, test the disk, and then copy the
  214. files back to it. During the copying and testing process, the errors were
  215. numerous...
  216.  
  217. 720K Group: 1 error per 15-20 disks,
  218. 1.4m Group: 1 error per 30-35 disks.
  219.  
  220.   After copying, testing and re-copying all the disks, they went back into
  221. storage mode for the following year.. This time we were careful to store them
  222. in a cool environment. Disks were read from as needed and NO ERRORS were
  223. encountered! Just recently, the entire library has been copied to tape, and
  224. the disks liquidated. We kept track of the errors for both groups...
  225.  
  226. 720K Group: 2 errors per 380 disks!
  227. 1.4m Group: 1 error per 350 disks.
  228.  
  229.  
  230. Page 10
  231. ═══════════════════════════════════════════════════════════════════════════════ 
  232.   The tests seem to show two things:
  233.  
  234. 1. Disks become more reliable if the bad areas are flagged permenantly as
  235.    they are found and not re-formatted.
  236.  
  237. 2. Pre-testing the media by charging all the bit cells and temperature cycling
  238.    before use yeilded a much greater relability factor.
  239. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  240.    It sure worked for us, and a number of other people.
  241.  
  242.    Try it - it's free! You can easily incorporate this method by
  243.  
  244. A. Running XMedia on disks as soon as you get and format them. Then just store
  245.    the disks normally until you need them...
  246.  
  247. B. Run a disk test on the disk each time BEFORE you write data to it.
  248.  
  249. C. When errors ARE encountered, erase the defective file and run the disk test
  250.    to flag the spot bad. Do not run XMedia on the disk again. Remember - once
  251.    you fill the disk, it stays there until you write something else over it.
  252.    
  253. Page 11
  254. ═══════════════════════════════════════════════════════════════════════════════
  255.                         Brand-X FreeWare Info / Stuff
  256.       Brand-X FreeWare is just that: No-Guilt software that's free for the
  257.       taking. No registration or other compensation is required. If you like
  258.       this program and want more of our stuff, but can't seem to find it
  259.       on the BBS's, you can get a floppy (any size) with other Brand-X FreeWare
  260.       releases by sending 5 bux to: JC @ P.O.Box 1953 Santa Clarita, CA. 91386
  261.       Comments / Suggestions are also welcome. Here's more Brand-X warez:
  262.  
  263.         PSET -  An EZ to use graphics screen draw/CAD (ahem) for CGA.
  264.         XLIB -  Library director for Quick Basic 4.x series.
  265.         PCIS -  Purple Chickens in Space! A funny CGA demo.
  266.         XS20 -  X-Section - cuts up large Binary or text files for
  267.                 transportation on small floppies, then re-assembles them.
  268.         XJOY -  Read and test joystick/game ports 1 and 2.
  269.        XSCAN -  Keyboard code scanner, great for programming references.
  270.     SCRIBBL3 -  CGA screen grafix demo. Sit and trip out.
  271.       XASCII -  ASCII/Hex/Character chart/X-reference for programmers.
  272.        XSCAM -  Screen text capture to file. Resident/and non resident.
  273.        XLIST -  Searches BBS and other text lists for matching data.
  274.      XBANNER -  Create colorful alternating block ANSI messages.
  275.      XNEBULA -  VGA space scene generator/Gas clouds/planets and more.
  276.                                                      ─┬─┬─ ┌┬┐
  277. "XMedia" and "Brand-X FreeWare"  are Trademarks of   └┘ └──┘ └ Digital Imaging
  278.